package com.qf.md.unit.service;

import com.qf.common.PageVO;
import com.qf.entity.md.unit.MdUnitMeasure;
import com.qf.md.unit.param.UnitSearchParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.UnsupportedEncodingException;
import java.util.List;

public interface MdUnitMeasureService {
    PageVO<MdUnitMeasure> unitPage(UnitSearchParam unitSearchParam);

    int saveMdUnitMeasure(MdUnitMeasure mdUnitMeasure);
    MdUnitMeasure findById(Long Id);

    int updateMdUnitMeasure(MdUnitMeasure mdUnitMeasure);
    List<MdUnitMeasure> findByPrimaryUnit();

    int deleteById(Long id);

    void deleteMdUnitMeasureBatch(List<Long> ids);

    void uploadExcel(MultipartFile file);

    void downloadExcel(HttpServletResponse response);
}
